package com.ys.entity.overseas;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TOS_ProductActiveFile", catalog="Id")
public class TosProductActiveFile extends BaseEntity<TosProductActiveFile> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="TosProductActiveId", nameJava="tosProductActiveId", typeDataBase="bigint")
	private Long tosProductActiveId;
	@YsField(nameDataBase="FileType", nameJava="fileType", typeDataBase="tinyint")
	private Integer fileType;
	@YsField(nameDataBase="FilePath", nameJava="filePath", typeDataBase="varchar")
	private String filePath;
	@YsField(nameDataBase="FileNo", nameJava="fileNo", typeDataBase="int")
	private Integer fileNo;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TosProductActiveFile setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getTosProductActiveId() {
		return tosProductActiveId;
	}
	public TosProductActiveFile setTosProductActiveId(Long tosProductActiveId) {
		this.tosProductActiveId = tosProductActiveId;
		return this;
	}
	public Integer getFileType() {
		return fileType;
	}
	public TosProductActiveFile setFileType(Integer fileType) {
		this.fileType = fileType;
		return this;
	}
	public String getFilePath() {
		return filePath;
	}
	public TosProductActiveFile setFilePath(String filePath) {
		this.filePath = filePath;
		return this;
	}
	public Integer getFileNo() {
		return fileNo;
	}
	public TosProductActiveFile setFileNo(Integer fileNo) {
		this.fileNo = fileNo;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TosProductActiveFile setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TosProductActiveFile setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TosProductActiveFile setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TosProductActiveFile tosProductActiveFile(
		Long tosProductActiveId,
		Integer fileType,
		String filePath,
		Integer fileNo,
		Integer status
			) {
		TosProductActiveFile entity = new TosProductActiveFile();
		entity.setTosProductActiveId(tosProductActiveId);
		entity.setFileType(fileType);
		entity.setFilePath(filePath);
		entity.setFileNo(fileNo);
		entity.setStatus(status);
		return entity;
	}
}